//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.bfsuolcomponents.log.entity;

import com.bfsuolframework.core.entity.Entity;
import com.bfsuolframework.core.entity.EntitySupport;
import java.util.Date;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

public class SysLog extends EntitySupport implements Entity {
    private static final long serialVersionUID = 1L;
    private Long id;
    private String content;
    private String userAgent;
    private String type;
    private Integer level;
    private String serverName;
    private String serverIp;
    private String userName;
    private Long userId;
    private Date createDate;
    private String loginIp;

    public SysLog() {
    }

    public SysLog(Long id) {
        this.id = id;
    }

    public SysLog(String content, String type, Integer level, String serverName, String serverIp, String userName, Long userId, Date createDate, String loginIp, String userAgent) {
        this.content = content;
        this.userAgent = userAgent;
        this.type = type;
        this.level = level;
        this.serverName = serverName;
        this.serverIp = serverIp;
        this.userName = userName;
        this.userId = userId;
        this.createDate = createDate;
        this.loginIp = loginIp;
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getContent() {
        return this.content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getUserAgent() {
        return this.userAgent;
    }

    public void setUserAgent(String userAgent) {
        this.userAgent = userAgent;
    }

    public String getType() {
        return this.type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Integer getLevel() {
        return this.level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public String getServerName() {
        return this.serverName;
    }

    public void setServerName(String serverName) {
        this.serverName = serverName;
    }

    public String getServerIp() {
        return this.serverIp;
    }

    public void setServerIp(String serverIp) {
        this.serverIp = serverIp;
    }

    public String getUserName() {
        return this.userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Long getUserId() {
        return this.userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Date getCreateDate() {
        return this.createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getLoginIp() {
        return this.loginIp;
    }

    public void setLoginIp(String loginIp) {
        this.loginIp = loginIp;
    }

    public int hashCode() {
        return (new HashCodeBuilder()).append("com.bfsuol.wcs.ucenter.entity.SysLog").append(this.getId()).toHashCode();
    }

    public boolean equals(Object obj) {
        if(obj == null) {
            return false;
        } else if(this == obj) {
            return true;
        } else if(this.getClass() != obj.getClass()) {
            return false;
        } else if(!(obj instanceof SysLog)) {
            return false;
        } else {
            SysLog that = (SysLog)obj;
            return (new EqualsBuilder()).append(this.getId(), that.getId()).isEquals();
        }
    }

    public String toString() {
        return (new ToStringBuilder(this, ToStringStyle.SIMPLE_STYLE)).append("com.bfsuol.wcs.ucenter.entity.SysLog").append("ID=" + this.getId()).toString();
    }
}
